package com.qijian.business.domain.vo;


import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;

@Data
@ToString
public class MarginalAchieveDataVo {

    @ApiModelProperty(value = "元素")
    private String element;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "高级id")
    private Long highId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "父id")
    private Long parentId;

    @ApiModelProperty(value = "成本类型,top顶级类型：1:材料,2:人工,3:外协,4:物流")
    private String costType;

    @ApiModelProperty(value = "预算成本")
    private BigDecimal budgetCost;
    private BigDecimal budgetMarginalRate;


    @ApiModelProperty(value = "实际成本")
    private BigDecimal actualCost;
    private BigDecimal actualMarginalRate;


    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("bomId")
    private Long bomId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("projectId")
    private Long projectId;


    @ApiModelProperty("项目编号")
    private String projectNo;
    @ApiModelProperty("机台号")
    private String machineNo;
    @ApiModelProperty("销售金额")
    private BigDecimal salesAmount;
    @ApiModelProperty("项目名称")
    private String projectName;
}
